Init and creation of a window.