Viewport Frames
This feature draws a colored frame around the 3D viewport to highlight the fact that a specific mode is turned on, such as Autokey or Multiframe Edit.
This feature is part of the Overlay Tools.

The display of this visual feedback is activated by default. It can be turned off in the Preferences panel.