Sorry Habeed, I was in fact asking for ideas about how it can be done.
Fine, then this is much easier a question.
1. Finish medical school and residency.
2. As an attending, pay the pricey tuition to attend private flying schools. It's a common misconception that you have to come from the military in order to be an airline pilot. That is not true, there are expensive private flying schools that teach you how to fly. They start you out with small planes, and eventually teach you how to fly multi-engined jets. There's many classroom hours, simulator hours, and some actual behind the stick practice in actual aircraft, which is the expensive part.
Here's one of those schools right here. It takes 150 days to start from scratch until you have the certifications to fly those small regional jets for an airline. (you know, those tiny things you take to go a few hundred miles from city to city)
http://www.atpflightschool.com/
Notice that the total cost is
$75,000 for the program that gives you sufficient flight time to get hired at an airline. As the return on investment is very poor (you'll be paid around $30,000 a year to fly for an airline), you should treat it like a luxury purchase and subsidize this career using your income as a physician.
So, after you finish residency, do locum tens work for a while to save up $75,000 + living expenses (gee I sure hope you don't have a family because they won't be too happy about this), then go to this school and learn to fly.
Once you're certified, keep doing locum tens work and work for an airline the rest of the time.
3. Presto! Doctor and professional pilot!
Notice the last part. If you're a male, and you enjoy having sex with your wife and having kids...most spouses aren't going to be too happy with you cutting your income by 2/3s to go play pilot. Even a decent, non gold-digging spouse will not be impressed by you choosing to make $80k a year instead of $240k, making you a significantly worse provider for your family. You'd never have enough time to rise up through the ranks of an airline to get seniority and make the kind of money that an experienced pilot can make. (it takes 15+ years to get to the 6 figure mark)
Anyways, that last catch is why no-one does this kind of thing. It's the same reason doctors don't become race car drivers, professional snowboarders, or professional sex workers. All those things sound pretty fun, but the cost is too high.