When set to World guess you could always brute force the widgets scale relative to camera if you dont mind it clipping through actors:
or when using Screen just turn it off when a specific component (with cast shadows set to false) has been occluded: