window--preservable-size

window--preservable-size is a compiled Lisp function in `window.el'.

(window--preservable-size WINDOW &optional HORIZONTAL)

Return height of WINDOW as `window-preserve-size' would preserve it.
Optional argument HORIZONTAL non-nil means to return the width of
WINDOW as `window-preserve-size' would preserve it.