That's an incredibly bad example. Besides sharing the same word (in English), there's almost zero similarity.
"Are computer mice and the kind that squeak different enough?"
Xeyes is not rectangular, Portholes are round. The window on my boiler permits views inside the boiler etc. etc.
On a desk cluttered with papers, you can see bits of some papers and others papers are hidden by other papers that are on top.
There is no way you should be able to patent such an obvious real world, real life experience, just because you were the first to take that real world experience and replicate it on a computer screen.
All you have done is modeled a real work experience.
Frames, boxes, panels, or "windows". A child could come up with the need for a digital version of a container if none existed. The name that catches on to describe that container is irrelevant.
In the digital world we need to be sensible about what would inevitably exist given the hardware allowance for such an obvious software feature. Slide to unlock is child's play.
But more importantly, "slide to unlock" is essentially "swipe to unlock". The swipe zone is confined to a specific area, but it's still swiping. "Flicking" also works. Apple are trying to patent "swiping", which is ridiculous.
Just like "double click to unlock" would be equally absurd as a patent for unlocking a desktop PC. Changing the name to "double press to unlock" doesn't suddenly make it unique.