I don't think you can, since AFAIK the dock area behavior is only implemented by QMainWindow.
If you want the docking behavior , you will have to implement it in the parent widget.

But maybe someone else knows better.