Here is one of the rotten casement windows, with the replacement I made for it underneath.
I had to make two of these, then prime them before nailing them in place.