WordPress Tutorials
Showing Custom Image Sizes in the Editor with image_size_names_choose
A size registered with add_image_size exists for templates and nowhere else. This filter is what puts it in the Image block's Resolution dropdown, and it does nothing for images uploaded before the size was registered.