Proper window install carries a sturdy flashing plan to cope with water
https://acornmetric.com/s/6vrBYZk_ARmcuQKzLV3KE
Proper window set up carries a forged flashing plan to arrange water. Correct layering directs moisture outward and protects the sheathing and framing.