According to the code,  main document runtime loads 'index.html' for widget application, so think it should have a window.