there seems to be 3 versions of the skyroof which *probably* are for 3door/5door/MW altho i dont know for certain...
there is certainly different brackets and hoses and things listed for different variants. ill go out on limb and say no they are not interchangeable but if you can give chassis numbers of you car and whichever car you want to take the parts off (through PM not over a public forum) then im sure it wouldn't take long to cross reference the part numbers
i think the "curve" of the roof is different on all three, as the rear roof sections are higher on a 5 door to a three so the window would need to be a different shape (albeit slightly)