JS question

Hi all, i have a question about JS, i dont know if you are fimalir with IPB 2.1.x but when you are logged in at an IPB 2.1.x forum there is “My Assistant” on the member bar and when you click it it pops up, heres an image

and you can move it

i want to make something like this but all ican find is how to make a popup and i dont want that so does anyone know how to do this??? thank you