Pan flashing under doors and windows is an effective way of ensuring that no water is driven under the door or window.