Basic window class, mouse cursor controlling