This screenshot shows how Krita's docker system works. In this screenshot, the "Channel" docker has been detached from the right panel and becomes a floating docker. The "Add Shape" docker is being docked into the right panel, the grey-bluish area between the "Tool Options" docker and "Advanced Color Selector" docker is where it is going to be docked.