moving ignoreWindow and isWindowPrivate to window/utils module