Added a window interface to make the opening of a new window more clear.