autoVP automatically switches the active viewport to the viewport the mouse is hovering over. This allows you to interact much faster with manipulators in that viewport, select objects, get properties, etc.
Script can be used 'as is' as well as be accessed by scripters (e.g. the function to get the viewport under the mouse is exposed).