The reference is to some substance such as marijuana that, when smoked, affects your thinking process. The general meaning is that your thinking is wa-a-ay outside the box.