Whe using script to open compare window, the ribbon panel is freezin, cant click any button in it etc. After window resize os window switch focus the panel unfreez.
I had to add change ActiveWindow.WindowState to normal/max and back to work it around.