I know how to load an order based on its properties by following code
$orders = \Drupal::entityTypeManager()->getStorage('commerce_order')->loadByProperties(['type' => 'default'])
Since order items is a referenced entity can I load only orders based on purchased entity? Say I have Product Id ($product_id) I need to load orders based on product id. How can I achieve this?