Implement open and close window without animation.