With Illustrator 24.3, you can now unlock Objects directly from the canvas using the lock icon without the need to go to the Layers panel.
In order to do that, you can use one of the following methods:
- Enabling the option to unlock objects on canvas: Select Preferences > Selection & Anchor Display > Select and Unlock Objects on Canvas. A lock icon is displayed on the canvas for the locked Objects. Click this icon to unlock these Objects.
- Right-click the locked Object and choose Unlock > object-name.
See this article for more details about workflows related to Objects in Illustrator.