Caulking before putting the window in place.