Be careful with that; during disconnection of the magnetic part, the pins carrying 20 V on the cable can make momentary connections with other pins on the portion of the connector remaining in the machine; if this happens, the port may never work again (for charging, or for anything else).
The risk is probably not worth it.