Rear window rust repair without welding

Can I rivet inside the window frame and still get the window to seal?

Yes you bend the patch to match the missing and hold it behind drill hole rivet together. Then either do bondos or a few layers of fiberglass. Let cure then sand flat to match surrounding material.