Hey! Your book is definitely one of the Sherlock Holmes ones by Arthur Conan Doyle. The detective did drugs ya, mostly during his downtime, it’s cocaine tho not opium. 'The Adventure of Silver Blaze' is what you’re after if it’s the dog clue you liked. Brilliant story!