Add "New Palette from Selection" to palette options

It could be a new option in the palette “Options” dropdown. It would work similarly to the “New Palette from Sprite” option, where a palette is made by the colors in a sprite, except only a selection of a sprite is used.
As someone who uses very large sprite sheets, I sometimes find myself copying a sprite onto a new sprite just to use its palette - having an option to automatically create a new palette from a selection would be so much easier.