Fix docked widgets losing title and decoration when undocked

1 job for master in 25 minutes and 22 seconds (queued for 2 minutes and 36 seconds)
Status Job ID Name Coverage
  Build
passed #19059
linux kf5-qt5 qt5.12

00:25:22

20.0%