Every electrical current generates a magnetic field, so a non-contact voltage tester can detect current in a conductor ...
Non-contact voltage probes have been around a while and some test equipment now has them built ... Many didn’t work very well, but the best used a 4069 CMOS hex inverter. A dollar store ...