I did exactly the same thing. Bike fell over and the ball joint popped out. I spent an age trying to reinsert it, mirror left in sun to heat up, ball joint in freezer no luck. I ended up mounting it in a bench vice with soft jaws and carefully applied pressure.I used one for quite some time. I really liked the size of it and how stable and adjustable it was. A while ago I knocked the ball-joint thing out of the bar-end plug and I could never get it back in again! in the end I lost part of it, I'll probably find it at the back of the shed one day.
Did it work? No, the glass cracked so I purchased a new one.