How to display overlay text in the viewport (above a specific point)


I would like to display different information above point objects in the viewport.

As a start I have found this:

How could I write the point name above the point object (viewport view) in the display color of the point?