finish window/sample mode into one example, add and update ext window example
