This is not a feat hearted.
Have you considered how many little ridges, nooks, crannies & fissures there are in frame, tracks, handles, glazing frames etc? So the preparation won't be easy.
Preparation will require a light sand to ALL surfaces, masking everything you don't want painted...