Silicon is the best solution to seal that gap in your window pane, etc. . .