Every device capable of charging your computer over Every interface requires that negotiation: Power adapter via USB-C, display via USB-C, or MagSafe.
Your MacBook Pro uses smart charging to charge in the optimum way, and only when necessary. Plugged in is Not necessarily actively charging. There is substantial hardware and software cooperating on battery and charging issues. Simply asserting a charging voltage against one of the interface(s) will NOT successfully charge your MacBook Pro.
An external power supply that provides "USB Power Delivery" (like certain displays) can not 'force itself' on your Mac. The Voltage and Current are delivered only after your Mac requests and the charger agrees to supply power under certain controlled conditions. The computer is in control of the entire process.