Add an event which can be handled by the application to determine the splitter position when the splitter window itself is resized. This can be used to e.g. preserve the splitter at the given proportion of the window (and not just in the middle, as it would be already possible by using gravity 0.5). Closes #22035.