Is it possible to select a tonal area in histogramm in a filter?

Isn’t that what the Threshold tool effectively does?


(Using GIMP)