The thought was to avoid the traitsui dependency for those not actively using DnD, but I guess this code is getting called the first time something is dragged over the window.

I should probably try and guard the import with a try...except... and if it fails, we have `obj = None` and pass the mimedata through as an extra attribute on the event.