3d house window?

i want to ask
can i make a box like wall, then with csg i make hole in the center of the wall (like window). but the hole is blend like glass on the window. can i?? and then if i give light like the sun, and make shadow of the window. the wall shadow and the glass must diffrent(you know!).please help me, if can give me the way(the logic)/the proses(not the coding) that i must folow to make that

You can make a wall that has depth with a hole in it. This can be achieved by simply drawing a collection of polygons giving you the length, width and height. For the window, you will have to use a polygon, and give it a transparncey value. For the best affect you should apply material properties to the polygon that defines the window. Hope this helps. Your question isn’t very clear.