Add WindowSH helper. Add tryClose window