Any reason for doing `target instanceof window.constructor` instead of `target.window === window` like you did in #803?

If they can be the same, what do you think about making a `isDOMWindow` module?