Can legend stay visible even if the layer is off in JS API?

Hello, I am writing a web application using ArcGIS JavaScript API (>=3.13) and I need the legend to stay on all the time even if the layer is off because other elements on the page use the same symbols. Is that possible?

Tim, the legend widget is really impressive and I did find it before I posted the question. I was looking for a more lightweight and out-of-the-box solutions and I just overlooked the autoUpdate parameter of the esri legend dijit. That should do the trick for me, although setting it to true means the legend is not sensitive to map scale any more so one would somehow need to refresh the legend in map.on("extent-change", ...) using map.getLayersVisibleAtScale().