Mechanisms underlying drug-mediated regulation of membrane protein function