Move mouse pick function into dialog library

Haven't ported to LuaBridge yet
Make HUI dropdowns a bit easier to read