Locked objects can be grouped. To reproduce, lock an object or group of objects then select each one (ctrl + left mouse) then hit Group (default `G`).

Cards will be added to a deck, chips will be stacked if there's already a stack selected. If only individual chips are selected, all but one are destroyed.