I don't think this would work as a lesspipe.sh viewer, since it is interactive.
I have wanted this for VisiData for data files. You would need a wrapper around less that could start other programs instead of less.
You might be interested in Tidy Viewer with lesspipe.sh