Kindly provide the below mentioned information so that we can assist you appropriately.
App that you are using:
My Mac is running on OS X 10.9.5 And I have the problem with Indesign CC
Try turning on Window > Application Frame.
That will put a background behind the window, and documents will show as tabs by default.