Thanks TeLLie, of course that works. I completely overlooked the menu item and instead I always reset the layout in the settings.
Several programs seem to have problems with docking, including OpenOffice. But it also works there via the corresponding menu item.
Thank you for your effort,
Michael