Adding a new window with base class.