How to avoid window sticking to paint?
There is really only one product you should use on windows and door hinges, that is dry silicone spray.  Silicone will not remain wet, collect dirt or build up with every coat or application.  Spray the tracks liberally then wipe it gently with a soft cloth to distribute the product and remove access.  I think you will be pleased with how well it works and how long it lasts.