Created an abstract window class

Windows version implemented.