Although not normally considered a prescription drug, Cannabis has marked affects on the REM sleep phase.
1: https://www.psychologytoday.com/blog/the-teenage-mind/200906...
Since CBD only products (< 1% thc) have become legal in Switzerland, I've been using them to handle anxiety and one of the upsides is very refreshing sleep + more dreams.
https://www.psychologytoday.com/blog/the-teenage-mind/200906...
Above was just the subjective part, there have been studies on the objective effects of cannabis on REM sleep, where it appears to decrease total REM sleep duration.
As far as the implications of this go, your guess is as good as mine.
It seems remotely plausible that cannabis could be inducing a REM-like state while the user is still awake.