1. Blur HQ Grayscale

  1. Invert Grayscale → Distance → Invert Grayscale

Blend the two together and you can control the distance. Use a Histogram Scan before the last Invert Grayscale on the lower method to control the contrast better using the Position input.