This PR extracts the common sculpt gesture code from paint_mask.cc into a separate file in preparation for further changes to use it within the existing `PAINT_OT_hide_show` box gesture operator and later for adding a new *Lasso Hide* operator for #80390 Pull Request: https://projects.blender.org/blender/blender/pulls/118881