It seems like there's no way to detect if window popup was closed, since dom.raw.Window doesn't have `closed` property. It can be done using `p.asInstanceOf[js.Dynamic].closed.asInstanceOf[Boolean]` while there is no support for this