Use WindowData in the constructors of Application and Window