Question about UnlockSelected command

Rhino 7 documentation says: “Lock command… You cannot select locked objects… The UnlockSelected command unlocks selected locked objects.”

How can you select locked objects?

Remarkably, UnlockSelected, somehow, overrides the locked state and lets you select objects to be unlocked! Just programming magic, if you ask me.

-Pascal