Hide window when click outside window.