Depends on the document and jurisdiction. If I remember correctly, some levels of military classifications here in Finland require you to not read the document and return it to the officials. Of course the one who left the document would also get reprimanded at least.
Using someones password without permission is as illegal whether you shoulder surfed it, cracked it or red it from a post-it note.