This is a tricky way that I found to make tablecloth and curtain, by ocean modifier.
Basically, the cloth is made by ocean modifier with solidify modifier.
The good part is that the way is simple, and the resulted file size is very small, it is usually less than 1MB.
Also, cloth from ocean is somewhat funny for me. It is the best part for the way.
Ocean modifier settings:
Flatten top of the table:
In the comment of the tutorial video, X_Franklin _X pointed out how to flatten top of the table.
Apply ocean modifier, and go into sculpt mode, then use flatten brush as if you are ironing the cloth.