> > I'm sure the patch is correct but 50+ lines of window-management code
> > in eglot.el?
>
> I agree it can go elsewhere.
>
> window.el seem like a good place.
window.el is already full, there is no free space left in window.el.
However, reposition.el is almost empty, there is only 1 function in it.