I'm not a lawyer, but I've unfortunately been a defendant a few times. As for examples, I have only my own, but it's worked out well for me, since I've never been convicted of anything.
Anyone can walk into any courtroom at any time (in most cases), so it wouldn't be misinterpreted as stalking. In fact, there are people out there that go spend the day in the courtrooms for fun - just watching the cases unfold.
The gist is that you want a lawyer that is both known and liked by the state and the judge. They have a much better chance of negotiating on your behalf. You definitely don't want one that they don't like, and that is usually immediately apparent in the courtroom interactions.