The car manufacturers have just agreed to put collision mitigation systems in all cars (by 2020 or something), and that requires radars and cameras. Even better, some cars have radars in the back, too, to identify cross traffic & c. So, identifying potential dooring event as well, might be quite doable using those same radars.
Edit: I forgot that my car also has this 'Blind Spot Indicator', that is, some radars that look to the side and back, to figure out if the other car is in your blind spot. I guess that could be used to prevent dooring, too.