How to prep roof for paint?

^^^^^^^^^ Yep. You can't fix that properly without taking the glass out. It will creep back on you. Looks like you got some of the old sealer out with a wire wheel. You can metal prep that part, then re-seam seal with DTM or prime then seal. The old filler you will need to grind out and just fill over the joint.