I assume it only can be `nsIXULWindow` and if you want to support that you can get dom window from it from
the util function in this module.