I would be inclined to either a) make this a index.xml so the sample can launch automatically, or b) Create an index.xml with a button that displays the progress indicator. I'd favor option B, because the code is simpler (one window versus two) and the user doesn't need to  be watching the window when it launches, they can run the progress indicator on demand instead.