When text is selected and the document has more lines than the window height (i.e. vertical scrollbars are present), the following causes the window to automatically scroll so that the top line of the highlighted text is at the top of the window:
Select text
Scroll the window so the first line of the selected text is not in the viewable area
It turns out that text doesn't need to be selected. If no text is selected, the window scrolls such that the cursor is at the top of the window.
Below is a video link (expires in 2 days) with selected text. Note that window is scrolled using the mouse wheel to position the selected text out of the viewable area.