Not for everyone but if you can, get a dog. Dogs are icebreakers. People like to meet a cute dog. They won't know your name at first but you will be "Fido's Dad" or "Dave's Mom". Other dog owners will greet you and so long as your dogs don't hate each other you already have something in common.
A dog gives you a reason to be wherever you want to be - take a walk around the neighborhood or to the park. You're not a rando taking a walk for mysterious and possible nefarious purposes, you're walking the dog.
But for for goodness sake, pick up after the pooch. If you can wipe your own arse you can pick up a dog turd with a plastic bag.
Anecdotally, I've had a lot of people in my life recede after getting pets. They're an excellent excuse to say no to things that you might otherwise do, because you need to get home and take care of the pet or you can't find a sitter to go on a trip etc.
Not generalizing to all people, but I think for some a pet can reinforce anti-social tendencies.