Proper window install contains a stable flashing plan to manipulate water
https://w6nql.stick.ws/
Proper window installing entails a forged flashing plan to cope with water. Correct layering directs moisture outward and protects the sheathing and framing.