You can use a baking dish instead of a sheet pan, but it's important to ensure that the ingredients are arranged in a single layer without overcrowding. This allows for even cooking and ensures that each ingredient caramelizes and cooks properly, enhancing the overall flavour of dishes like smoky chicken with peppers.