How to Show And Hide The WIDGET Using Line Trace !

Can you guys help me with this i am trying to fix it but its not working !!
just wanna know how to show and hide the Widget using Line Trace - EX: Press E to Open if i look at the Door !

Thank you