Plot a Dendrogram with a Heatmap, using distance matrix, not raw data

Hi all,

I would like to plot heatmap similar to the last example on this page, Dendrograms in Python.

But I have a distance matrix calculated from the raw data, I don’t have the raw data. I wonder how I can plot such heatmap with dendrogram on the axis?

Thank you!