Xarray not reading in unused dimensions

Hi, all.
My netCDF files have unused dimensions that are not used in data in files. They are saved to keep some dimension information for later use. I found xarray open_dataset do not read in those.(I guess like xarray creates dimensions from the data, not reading those.)
I would like to read them in and use them back using xarray, but I cannot find a way to preserve them. If you know how to read in those unused dimensions using xarray, please share with me. Thanks in advance.

Hi! I suggest you raise this as an issue on the xarray repository. It would also help if you could distill the problem down to a Minimum Reproducible Example. Best of luck!

I will try there. Thank you.