Seal leaks between moving parts (door and its frame) with weather-stripping. Fill leaks between parts that don’t move (window frame and wall) with caulking.