There may be Windows only solutions to folder password protection (the one I remember is from 20 years ago lol), but they are unlikely to be cross platform.
Of the top of my head the only thing that would work in a cross platform manner are password protected archives.