Initializing a window.