The other side of the coin of "not your keys, not your coins" seems to be "your keys, your coins". I see that many users think that way, but it is not about giving an opinion, but about knowledge of national laws.
In Spain, and I suppose that the same happens in all countries that are based on
continental or civil law, the fact that you could access the contents of the wallet would not automatically make you the owner of the funds. So that it happens, there must be what Romans called
traditio, that is, that the legitimate owner transfers his property rights to you, among other requirements, with a so called
iusta causa (just cause). There is no difference between the situation proposed by the OP and finding the keys to a house, or the password to a safe: its possession does not make you the owner of it or its contents unless the rightful owner has given them to you with that intention.
With Bitcoin there could always be the difficulty of proving the original ownership, of course, but that is another issue.