Back window rusted and leaking???

38437479-6929-4165-BB6E-2491A25287C7.jpeg FA0B2D82-4901-4C01-ADB1-64821944E6D4.jpeg 5CF6F306-C5D1-487C-809B-7C47185D1C32.jpeg 7BC8E0AB-4C5C-44D2-9E95-E28BC6C127C6.jpeg 94669A03-F49A-4A56-8DB8-1E6DFBF02BF9.jpeg Ok so there's after I pulled the old ugly sundried vinyl top off, I found a few holes around the back glass on my swinger and I'm a little confused on what to do here. The window leaks through the holes obviously but also around the bottom left corner of the window. I want to take out the glass, patch everything up nice, get a new seal, trim clips and then throw a vinyl top on but i'm not sure how to go about it or if I even should. At this point the trim is out but the clips are mostly bent or broken.