Docker windows image failed to map a directory if it's not empty

I’m creating a docker image for dev environment using mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2016 image as a base. In my dockerfile, I create wwwroot directory and a subdirectory that stores html static files of my web app. Since those static html files never changed, I’m incorporating them in image. For the build artifacts, I have created a directory on the host machine and map it to a wwwroot directory. However, that does not work. Docker compose up fails with the following error :

ERROR: for fe19ad01422a_cc_cc_1 Cannot start service cc: container 69c7aa53d7781f0c6bd3c6841074f014d894c93b0a4df58f6fce376a6cee4d8d encountered an error during Start: failure in a Windows system call: The compute system exited unexpectedly. (0xc0370106)

ERROR: for cc Cannot start service cc: container 69c7aa53d7781f0c6bd3c6841074f014d894c93b0a4df58f6fce376a6cee4d8d encountered an error during Start: failure in a Windows system call: The compute system exited unexpectedly. (0xc0370106)
ERROR: Encountered errors while bringing up the project.

Seems that docker doesn’t let you mount a directory if a directory you are mapping to is not empty (in my case, wwwroot contains subdirectory with static html files). I don’t remember having the same issue in docker linux image.