Moved window rendering to prototype