Runway Status Lights (RWSL) are close to what you're describing. If surface surveillance radar detects that a runway is occupied, it turns on red warning lights at the runway approach end and at the hold-short bars.
The nice thing is that the entire system is ground-based, no additional equipment needed in the aircraft.
However, it's complicated/expensive, so only a handful of airports have it installed.