How to make an interaction icon

Hi all, wanted to ask how I could be able to have this displayed whenever I move the mouse cursor over a door, then disappear whenever I hold down the mouse button over it. Think of something like Amnesia and SOMA.

263069-crosshair-carry-one-handed.png

I think you do something like: get mouse position on screen → convert screen location to world location → get that location and do a line trace to check if theres an interactable → if there is, set image visibility to visible → if there isn’t an interactable, or there is and the player is holding the mouse button then set image visibility to invisible.