Window subclass helper.