Install level on cordless drill
As Jsotola  alluded to,

You would have to use a  Long drillbit and  Clamp it  in a vice  so that the drill bit is plum  and true on all sides. 

Then chuck the drill on to the drill bit. 

Then you could glue your bubble on so that it is indicating level.

Good luck to you.