If you are writing to someone who has a doctorate or medical degree, use the abbreviated form: "Dr." However, for other titles, such as professor, judge, rabbi, etc., write out the full title and capitalize it. For example, your salutation in a letter to a judge would be, "Dear Judge Barnard." Or, if your correspondence was with a rabbi, you might write, "Dear Rabbi Williams."
Not only does this mean that you should focus on neutrality in your letter’s appearance (avoiding the use of colorful paper, brash logo designs, and artistic fonts), but it also means that you should employ a very low_key, unnuanced, and professional closing phrase. The best_case scenario is that the hiring manager, colleague, or connection won't even notice the closing.