Getting Away With Doing Your Own Thing Socially
If someone has a personality, preferences, or interests that differ from the social norm, then I think as much as possible they should try to figure out a way to be able to do their own thing and not have to change. The world being what it is, there are times we all have to be practical and compromise, but overall we're happier when we can stay true to our nature.
Since hardly anyone perfectly fits the mainstream social ideal, I think everyone does the things below to one degree or another. Here are my thoughts on how to go your own way:
Be comfortable with yourself
Accept yourself for you are and don't feel there's anything wrong with you for, say, liking your quiet time or not being irresistibly drawn to crowded bars. If you can do this, you'll have much greater peace of mind. You'll also project a comfort, confidence, and self-assuredness that will make people more likely to think, "If they seem okay with themselves, then they must be alright."
Genuinely don't care what people think
This is easier said than done since we're all sensitive to negative judgments. The other problem is that just because you don't care about people's reactions, doesn't mean their responses can't have practical consequences. Like someone could wear the same clothes to work for a month straight and not care what their co-workers thought, but it's still going to affect their career. Still, if what you're doing isn't hurting you or anybody else, then learning to not care can ease your mind.
Accept you're going to ruffle some feathers
If you continually go against the norm it's going to cause some friction. You've got to be okay with occasionally upsetting people through no real fault of your own. For example, if you don't like parties someone may take it personally if you don't go to theirs. In their mind everyone thinks big gatherings are fun, and the only reason someone would skip one is if they didn't like the other guests or they were trying to be difficult.
Tell other people what you're like and what you need
This advice tends to be given when someone needs a lot of alone time, they aren't crazy about more hectic social events, or if they're on the autism spectrum. Basically, if they left everyone to their own devices, people would negatively misconstrue their behavior. By letting them know the deal up front, they hope to avoid that. They may explain to their co-workers that it's nothing personal that they want to recharge by having lunch on their own, or why they're going to pass on a night of clubbing, or that their autism sometimes leads to them coming across as more blunt and insensitive than they intended.
If this approach works, then you have official approval and understanding to do your own thing. A potential downside is that the people you tell may not get it and not want to accommodate you. Also, people may have some justifiable reservations about disclosing a diagnosis like being on the autism spectrum to just anyone. Many people don't understand it, and the possible negative consequences may be too risky.
Sometimes people won't accept your different social needs because they're operating under misconceptions about them. If you can dispel their mistaken ideas, they may come around. For example, they may believe that your wanting alone time is a sign you don't like them, or that someone on the autism spectrum is purposely being rude, when they actually don't realize they've done anything wrong.
Mostly likely you'll get little chances here and there to work small education pieces into your conversations. Maybe after you've declined a party invitation you can explain it doesn't mean you're anti-social and hate everyone just because that kind of rowdy environment isn't your cup of tea.
Get good at saying no
When you differ from the social norm people will often ask you to do things you're not into. You'll have to get used to being assertive and turning them down. Some standard advice on saying no is to do so in a firm-but-friendly way. At times it's easier to use an excuse, while at other moments giving a more truthful explanation will help. If someone is persistent, the classic Broken Record Technique works well. Keep repeating the same simple "Sorry, I can't do it" response no matter what other person says, and don't get sucked into an argument. Eventually they have to give up.
Figure out ways to take what you need from your daily routine
This advice is also often given in the context of someone needing their down time. The idea is that even if their daily routine isn't set up to give them long recharge breaks, they can find ways to carve out little chunks of time for themselves. They could go for a walk at lunch, or close their office door for half an hour in the afternoon. A bigger example would be someone arranging to work from home for most of the week.
Don't seem too bitter and angry
When you do things like turn people down, or ask for accommodations, don't seem too annoyed and angry at the world for not understanding you. I'm saying this in the practical sense that if someone comes across as bitter, then it tends to detract from their message. People can't help but have a defensive knee-jerk reaction to how you come across emotionally and will be more likely to disregard what you're actually saying, even if you have a point.
If you seem cheerful and easygoing about your social difference, but still confident that you're allowed to be that way, and assertive in asking for what you want, then people will react a lot better - "Oh, she seems like she's got her act together. She must have a point." Yeah, it is dumb that you have to put on the right kind of show to get what you want, but that's what I've observed tends to work.
Seek out your niche
It's harder to be yourself if you feel like you're battling it out alone. You can take a weight off your shoulders by finding other people like you. This may mean joining a club to meet up with people in your city who are part of your subculture. It could mean going online and finding a forum for support. In more extreme cases it could be someone moving out of their constrictive, conservative small town to seek their real community in another part of the country.
Be valuable enough to people that they have to accommodate you
I know not everyone can put themselves in this position, but if people need you, you have more leverage to ask for what you want. They may resist at first, and may continue to resent what they've given you. However, what can also happen is that once they accommodate you, they'll realize doing so wasn't nearly as bad as they first felt it would be. One well-known example is the IT person at a corporate job who can get away with dressing more casually than the other employees, because everyone depends on them to keep the computers running.
Get to the point where you don't need anything from anybody
This point and the next are more long term. When we depend on other people we often have to make concessions to them. But imagine if you already had all the relationships and money you needed? You'd have way, way more freedom to act the way you wanted to and not have to submerge your identity.
Be so successful that people have to re-evaluate what they thought they knew about you
I know this one is also is simpler in theory. Say someone only has one close friend and spends most of their time working on their paintings, or programming games. Everyone thinks they're socially unhealthy and obsessively wasting their time. They keep doing what they're doing and eventually start to earn a decent living as an artist or indie game developer. Suddenly all those solitary hours don't seem like such a waste - "Hm, you know what? Thinking about it more, they're a fun, quirky genius, not a creepy shut-in. And their clothes aren't so eccentric after all..."
Of course, no matter what you do some people still won't understand you, but having success can help. It also advances the cause of other people who are in the same point. Look at what all the millionaires in Silicon Valley did for the way we look at people who are super into computers. It didn't create overnight acceptance, but it definitely shifted the conversation.
Have decent social skills
Many times when it appears someone's negatively judged for their obscure hobby or love of being alone, what people are really reacting to is their surface-level social awkwardness. Due to how human psychology works, if someone seems awkward then everything they do can get cast in a negative light. If someone seems socially skillful, those same traits and behaviors can be accepted. It's not fair or rational, but that's often how it is.
There are lots of likable, charismatic people who enjoy so-called "nerdy" things like comic books and video games, or who spend tons of time reading by themselves. However, since they make such a good impression no one cares about their hobbies. The same people will turn to someone else who does the exact same things, but who's more stereotypically dorky, and think, "Wow, what a dweeb. That guy needs to stop reading so many comics and get some sunlight for once in his life."
If it's something you don't mind doing, acquiring a foundation of decent social skills that you can 'turn on' when you're around people will give you a ton of freedom to pursue your other interests without any hassles.
Of course, if the way you want to 'do your own thing' socially is to not care about acquiring people skills, or if you're unenthusiastic about the idea of having to learn something to please other people and get them off your back, then this point won't apply to you.
If you have to, throw people a bone every now and then
Just thinking practically, there are times when we all have to compromise to keep everything on an even keel. If your job is cool with you keeping to yourself most of the time, but really expects everyone to come to the office Christmas party, then bite the bullet and temporarily put yourself into 'mingling mode' for a couple of hours. Or if you like your co-workers overall, maybe you'll grab drinks with them the odd time when they go to the pub on Friday, even though in an ideal world you'd skip it every time.