When using window.scrollTo to scroll to a specific position in the application the developer needs to know in advance how large the offset will be so that the element is not hidden by a sticky element.
A public api to estimate this position by x and y coordinates would solve this need.