FindCurrentUIElement

Moved the logic that determines which UI element is under the cursor
from the HandleInput function into its own function.
- Can reuse results for tooltips, etc.