It already exists the way it is now and…
If you set the display to “None”, the “eye-con” with the line through it shows to the right of the element in the structure panel.
If you click it, the element becomes visible again.
But if it was always there to turn on and off in one click I think that would be quicker.
The feature request is here: Link: