Or one can buy. This works very well for me (as a stand and a battery pack):
https://freshnrebel.com/magnetic-wireless-powerbank-5000-mah...
It does the MagSafe thing, but will also offer a charge through the USB-C port.