Creates an object from a copy of the selection.