Extract the window responsibilities into a new base class.