How to add a custom Buffer Visualizer through Plugin?

That was my original Idea, But I couldn’t get it to work, and didn’t find examples of plugins that add a property like buffer visualization.
If i can make just a plugin config that would be ideal