I never lost connection, the entire point is that the maximized window got moved as if the treeview didn't exist, and even then if that's what it was doing, there shouldn't be any gray space to the right (as you can see at the top right of the window, the minimize/maximize/close buttons are still where they should be.

The script does not use any DLL files, nor is there anything scripted that messes with window sizes, moving windows, or anything of that nature.