redock

fun redock(panel: DockPanel)(source)

puts panel back into the dock from its window, which closes