In the Preferences window, click on the word "Interface". That will bring up the General Interface Preferences section. From there, you can then set the Attribute Editor to open in a separate window or in the main Maya window.