You can break them and have everything spill out on the floor, or I believe you can use a Portal Gun to move them and keeping the insides inside.
How do I use the portal gun on them?
NVM, figured it out. But I can't seem to rotate the block I pick up. The picture on the barrel stays in the position that I originally placed it in.