Click the settings tab next to compose, and select the "Show close button" check box.
This will make an X appear in the top right of your form by default.
To move the location of your close window X around, adjust the offsets using the up and down arrows in the left sidebar
Your offset can go below zero and use negative numbers to get the perfection location, for example -5