start by creating an application and only then a window