Two unrelated meanings live in this word. In a kitchen it's wheat flour; in a crime drama or news report it's slang for heroin. Context disambiguates instantly.
culture
The drug-slang sense comes from heroin's white powder appearance. Police and crime fiction overwhelmingly use 白面 or 白粉 rather than the formal 海洛因 (hǎiluòyīn).