Although you cannot drag an item of these types that contains other items into your bag/inventory you can double click on it in vicinity to pull it into inventory.
By doing so and then placing items in the remaining slots you can repeat the process for infinite storage space.