I was implementing something similar today, and I encountered the problem that when the parent page is reloaded, the newWindow reference is lost. Is it possible to recover it again after a page reload?
Hmm I think after a reload this becomes super tricky.
You could refetch the state window, but the other window side won't ever be able to communicate because of the security risks.