How to encrypt Dropbox subfolder so it can also be synced on Windows?

There is Cryptomator, you might want to check it out and see if it suits your needs. This thread may be a bit out of date, so make sure to contrast it with the official documentation.