Proper rough opening prep, sill pan installation, flashing, shimming, and weatherproofing.