Issue with UI Editor layout when moving window to another screen

I have two monitors and when I move UI Editor to my second screen the layout does layout change to become unusable. When I move the Window back to the first screen(and the main screen) the layout returns to normal.

Picture of the layout when I move it to my second monitor: