Like transform window?

Hi there. I am a Blender newbie. My only 3D apps used before was Maya P.L.E. Right now I am using Blender and i like this apps very much.

I wanna ask you a question.

Is there a way to add a triangle button on the upper corner of the “Button properties window?” I want to close the whole window automatically. Transform window (with N Hotkey) has this function. For better illustration I added two images.