Adds pre-window creation implementation method to PyGlassApplication.