There is a good chance the metal header panel is rusted as well. With the rot up in the roof line rust is below too. Be prepared for worse case senario with what you have. Lots of good metal fabrication suggestions in this thread. Take your time, take the window out and repair upper and lower metal areas.