It used to be the case that hitting the orange-minus dot on the title bar of the Medley window would cause the window to shrink into the doc.
That no longer works, at least with XQuartz in Sequoia 15.5. Clicking the orange dot does nothing. However, clicking the red dot still closes the window, and if the window has been down-sized, clicking the green + still opens it up to its full size