Combine both grep and tree commands:
grep -rl "find" | tree --fromfile -F
Edit: The rg example didn't work correclty. Not sure what I was testing. But looks like the grep variant works as intended. Please report if its not.
Another Edit, because this is fun: A simple function for your .bashrc (functions are like alias, but allow more complex code, such as arguments):
treegrep() {
# grep:
# --recursive like --directories=recurse
# --files-with-match print only names of FILEs with selected lines
# tree:
# --fromfile Reads paths from files (.=stdin)
# -F Appends '/', '=', '*', '@', '|' or '>' as per ls -F.
grep --recursive --files-with-match "${@}" |
tree --fromfile -F
}