record tree when logging

When I’m logging an email, I would love to be able to look for a record, e.g. a contact, and then be able to expand a tree from the correct contact that shows any companies, cases, or deals related to that record, rather than have to search for them individually. It would speed up logging of related emails.