To move a building to the Warehouse, tap the blue arrow icon on the main screen, use the top option in the list (the building in the box icon), choose the building, and confirm your choice. Each movement to the Warehouse costs you a specific number of coins.
If you receive a bonus building, it will automatically appear in the Warehouse.
If you receive a bonus building, it will automatically appear in the Warehouse.