The red frame around plot part of legend is the activate dataset indicator. Analysis, etc. tools always work on active dataset by default. So it's useful to see it sometimes.
The control to turn it on or off is hidden on Legends/Titles tab of Plot Details dialog in the past and hard to find.