Added a Contains method to Window.