Comment some bugged code
ShowWindow: Check is the window is already shown