Sample app with window displaying