we might have 'main document runtime' which is not attached to any window, this looks really confusing that we've to send ui event there