public Rectangle getViewRect() {
		JViewport viewport = scrollPane.getViewport();
		Rectangle viewRect = viewport.getViewRect();
		return viewRect;
	}
Returns the current viewport position of the scrollable tree.

@return the current viewport position of the scrollable tree.
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/GTree.java