How did you install Docker? Official Docker would not care about “hidden” folders. That is just a folder starting with a dot wich is hidden on Linux by default.
Are you using Docker Desktop for Linux or Docker CE?
That should work too, but you can check if you are using the virtiofs filesharing implementation (general settings). It is usually recommended to use that instead of the legacy solutions.