Proper window install consists of a good flashing plan to arrange water
https://wakelet.com/wake/c_JL7-oFJsHjPsNB5fE8S
Proper window setting up involves a solid flashing plan to organize water. Correct layering directs moisture outward and protects the sheathing and framing.