Expected behavior of the wanted feature
At the moment, all the interactive menus console/select force the OSC to hide.
It was implemented like that so that console or select don't overlap with the OSC itself. It works, but it's not the best solution.
A better implementation is to introduce osc margins, so that it draws console/select above the OSC if it's visible, and once OSC hides, it moves down.
This follows mpv's stock OSC implementation, and we wouldn't need to assign a z depth of -1 to draw the osc behind everything.
Which should also follow the pending PR at mpv to improve console/select: mpv-player/mpv#15676

