Histogram 2d contour using different density weights

Is it possible to add weight to each x,y point that is used to generate the 2d Density Heatmap ?
So the x,y point weight is used for the generation of the histogram2dcontour heatmap.

Here’s how: https://codepen.io/etpinard/pen/XaRBwZ?editors=0010