Added virtual destructor for Window

parent class should have virtual destructor