It was very common in Eastern Europe during the Soviet time. For instance it is still referred to as "kompot" (original meaning: a popular type of fruit drink) in Poland. The phenomenon is also generally known as "Polish Heroin"[0].
For this Poppy straws - the whole dried plant with everything but the seeds - are used which are far more richer in opiate alkaloids.
In 1927, a Hungarian successfully chemically extracted opiate alkaloids from just using the crushed capsules [1]. Today 90% of all legally derived morphine is through poppy straw concentrate (PCS) [2].
[0]https://en.m.wikipedia.org/wiki/Polish_heroin
[1]https://www.unodc.org/unodc/en/data-and-analysis/bulletin/bu...
[2]https://www.unodc.org/documents/wdr/WDR_2008/WDR2008_100year...