I'm not a painter, but the ones I've seen lately paint the window frames and panes, and slop it onto the glass, too. After it dries, they use a razor blade scraper to scrape the paint off the glass.

Knock yourself out!

Hairdog