app: check the window is actually a GeditWindow