Stack windows when no position has been given (#11729)

Change-Id: I5841de4554a35af158764551f022bda1eaddb3c0