Accidental undocking is a known issue which is better handled in 1.7.
To prevent accidental undocking in 1.6 you can lock the gui from the prefs/gui menu.
To prevent accidental undocking in 1.6 you can lock the gui from the prefs/gui menu.