Proper window install involves a cast flashing plan to manipulate water
https://bnwkh.stick.ws/
Proper window setting up consists of a good flashing plan to set up water. Correct layering directs moisture outward and protects the sheathing and framing.