Some PVC, and powder coated aluminium patio doors will do this. The problem is sunlight breaking down the plastic, causing it to chalk like the old white painted windows. I had one yesterday. They are always on the south facing doors/windows.
Scrub the top of the frame really well, and you may get away with it.
This could be a big problem as PVC starts aging. Dai