The Star Wars galaxy is an extremely interactive environment. Objects made of LEGOs that you find along your adventure can usually be interacted with in one way or another.
Some of these LEGO pieces can be destroyed by shooting them with blasters or chopping them up with a lightsaber.
If a LEGO object seems impervious to destruction, it probably means that you can use the Force on it to either move it in some way or cause it to break apart. You can also put LEGO pieces together to form a new object.
Whenever you see a pile of LEGOs bouncing up and down slightly, that means they can be assembled. During your adventures, be sure to interact with everything in the environment to find hidden treasures.