Add window to window list if it's the last window