I wouldn't mind a toggle switch in settings that requests me to push "Yes" if I place my phone on a wireless charger. If you leave this function off, it just charges (for people who don't mind the risk).
If your device is locked, you need to authenticate to trust to said device.
Power starvation / observation attacks are passive attacks in a sense. They get their results by observing only.
..but...the article
In these types of attacks, you don't transfer any actual information, but guess something from observation.
There are more exotic attacks [0][1] which exploit the heat computers generate to exfiltrate data or time power starvation attacks.
[0]: https://dl.acm.org/doi/pdf/10.1145/3133956.3133994 [1]: https://www.wired.com/2015/03/stealing-data-computers-using-...