best way to fix rust around rear window

I agree with Adam. Take your grinder and clean area around rust to be sure where it ends, and then cut a couple of inches larger from donor car and then taking your time, trim new piece to fit properly and attach it. Do you have a welder and welding skills?