Basic window functionality

Basic stuff with the necessary framework to be a standalone for testing purposes.