When playing a scenario with enemy buildings (not spawners but actual buildings like walls, turrets, etc) and the enemy has ghost entities, player drones will take available items from the player inventory and will build the enemy structures, and the built items will be of the faction the ghost entities are tied to, so you cannot recover what is built.