For the cable unlock-to-unplug function only, it is fairly easy - provided you have a connector that you can actually open up (many have security screws of one sort or another; some are moulded and so impossible to open).
If you do get it open, you will find that there is a 220R resistor between the central earth pin and the 'PP' pin.
The minimal change (ie. to make it actually work) is to insert a normally-closed switch between the PP pin and the resistor. So in the normal state there is the 220R between those pins as before, and with the button pressed the PP pin is disconnected. Model S is happy with this and unlocks the connector without any errors etc.
An arguably more correct change (making it like the Type1 connector which officially has a button, unlike the type2), would be to change the resistor to 150R, insert the switch, and put a 330R resistor in parallel with the switch. In this configuration, there is normally 150R between PP and earth, with the button pressed it rises to 480R. I think this is what the UMC's plug has in it, but I haven't measured it recently and I could be wrong.