How can I see which processes are draining my macbook battery by percentage? Android devices have a screen that shows you approximately what applications and processes are using your battery, by percentage.

I'm wondering, in theory, can this be done on a MacBook? How do you think Android determines those numbers?
I'd say that what's really being measured there is average CPU usage per application. Then some maths is being done in the background to calculate based on CPU usage how many watts per hour are being consumed per app. Knowing current battery capacity/charge would make that pretty trivial in terms of calculation.

On a portable computer, similarly, if an app is really driving your CPU, then your battery is gonna run out faster.

I'd recommend getting hold of something like iStat Menus which can show you realtime CPU usage in the menu bar as well as a bunch of other stuff. Specifically, the CPU monitor in iStat breaks down CPU usage per application.