I've been working with EditorWindows, and i've ran into a very annoying problem that seems more like a visual bug on the Unity Editor.
How to recreate: 1- Create 2 editor windows 2- Add a textfield to each one of them, like this: "objName = EditorGUILayout.TextField ("Name", objName);" 3- Dock them in the same group. 4- Type something on a textfield 5- Change the tab, and watch the value propagate to the other window.
If you type enter before changing, or change without focus on the textbox, nothing wrong happens. But the weirdest part is that if you check the focusedwindow variable, it shows properly which windows has the focus, but you don't get "OnLostFocus" events, and does not lose focus if the docked window is not visible.