help creating new space window

hi i’m begining in programming blender and want to create my custom window in blender 2.5 but in the sample of blender wiki is so old and i can’t find some files and i really want learn programming for blender

this works in last blender 2.5 version? how i can do it?