Move with drag-and-drop

You can avoid accidental moving of the tool window buttons or editor tabs by enabling Drag-and-drop with ALT pressed only in Settings | Appearance and Behavior | Appearance | UI Options.

Drag-n-Drop with ALT pressed only option