Can an iPad Pro Charge a MacBook Pro?
While the iPad Pro can charge other devices off of it, including other iPad Pro devices, I see no indication that charging a device like a MacBook is possible.

I don't see any feature in which you can disable power transfer while connected via USB-C, like while using Sidecar in a wired configuration.

Apple does have instructions on how to charge another iPad Pro from the iPad Pro, including how to select which iPad Pro charges which:


  If you have two iPad Pro models with USB-C ports, you can connect them
  directly with a USB-C cable. One iPad Pro will draw power from the
  other. If you want to change which iPad Pro charges, unplug the USB-C
  cable and then reconnect them.


You could try the above with your MacBook and iPad Pro, but it's unclear if that would work.