Apparently this doesn't work, for some reason every widget reports a different window, even when they are in the same window ... Maybe widgets inside and outside a viewport are technically in different windows?