A Widget Component
in Screen Space
does precisely that. You could have any BP own the component and even attach it as you see fit. Or even change ownership in C++.
when I move away from the object, the widget gets bigger
You mean smaller, surely.