GUI.Window for drag&drop

Hi all,
I made a exhibition room in unity and I would to make the paintings interactive…when I click the painted the display of image come out in overlay mode…I would to create the system of drag&drop for these images, maintain the alpha channel for view the room on the background…and close them if I click X button.
I made a GUI.window with image with this code:

I have applied this code to GUI Text object

It works but I can’t display the image without the border and title bar of window…my target is display the image with no border, with alpha channel, drag it on the screen and close it when I finished…
I tried with GUI.Label and GUI.Texture but I can’t drag it…is it correct to use a GUI.Window? How can I remove the border and the title bar?
thanks
bye

sorry for double post

the window border and titlebar is set using the GUI skin. if you want to get rid of them you will need to make a custom GUI skin and set the values so that the borders and titlebars are transparent or nonexistant. otherwise it sounds like you have the right approach.

thanks! I have fixed with personal GUI.skin.
Now I would assign to my object on scene the OnMouseDown property for open a GUI.texture in a drag window…in my 3d room, when I click to a painting, the GUI.texture (inside GUI.window) appears in overlay drag mode…and close it with X button…How can I do that?
I know how to use OnMouseDown function for load new scene like:

…but I don’t know how to do that for open and close GUI.window.
thanks
bye

I have tried to close the window with this code:

var windowOpen : boolean = true;
var windowRect : Rect = Rect (500, 0, 400, 400);
var aTexture : Texture;
var customSkin : GUISkin;
var btnTexture : Texture;
var button : int;
 
function OnGUI() {
   GUI.skin = customSkin;
   GUI.color.a = 0.8;
   if (windowOpen) {
   windowRect = GUI.Window (4, windowRect, DoMyWindow, "TEXTURE");   
   } 
}


function DoMyWindow (windowID : int) {
    GUI.DrawTexture(Rect(0,0,400,400), aTexture, ScaleMode.ScaleToFit, false, 0f);
    GUI.DragWindow (Rect (0,0,430,430));
    if (GUI.Button (new Rect (415, 0, 15,15), "X")){
            print ("it works");
            windowOpen = false;
    }
}

it doesn’t work…with this code it works but I don’t have the X button inside the window…

var windowOpen : boolean = true;
var windowRect : Rect = Rect (500, 0, 400, 400);
var aTexture : Texture;
var customSkin : GUISkin;
var btnTexture : Texture;
var button : int;
 
function OnGUI() {
   GUI.skin = customSkin;
   GUI.color.a = 0.8;
   if (windowOpen) {
   windowRect = GUI.Window (4, windowRect, DoMyWindow, "TEXTURE");   
   } 
   if (GUI.Button (new Rect (415, 0, 15,15), "X")){
            print ("it works");
            windowOpen = false;
    }
}


function DoMyWindow (windowID : int) {
    GUI.DrawTexture(Rect(0,0,400,400), aTexture, ScaleMode.ScaleToFit, false, 0f);
    GUI.DragWindow (Rect (0,0,430,430));
}

close button fixed…

how to open GUI.window from 3d object in scene is the next problem to solve

mmmm…the problem still remains!