That feature would be called an
OBS mode.
IFR units all have it - I believe by regulation. Great for flying DIY VOR and NDB approaches
It makes very little sense unless you have a moving map display on which to show the waypoint and the two lines sticking out of it in opposite directions.
I am not aware of a handheld which does exactly that, but there could be some.