For every window in Mac OS X, a hidden file called ".DS_Store" contains the information on how the window is to be displayed (such as, which columns are shown for "list" mode, icon sizes, window ...
What is the DS_store file? These are hidden files used by macOS (proprietary), which keeps a record of attributes or meta-data about the folder in which it resides. It holds data such as the position ...