How did the drug work so well anyway?

Yes I am directly referring to the drug that began the whole series as I would like to know just how it managed to turn Mahiro into a girl as I have been wondering how his or her own sister was able to turn him into a full female.