Well, there appears to be a bug. The window clipping doesn't work correctly in a nested window, if its parent window isn't at position 0, 0 (the clipping rectangle is not properly offset for nested windows).
So the workaround for now is to use an invisible window at position 0,0 and nest the other windows in it...