Added support for testing as a desktop window