Second try.

Let's see what parentIsWindow does.