Open your file and then Window
->New Editor
(Note: in newer versions it will be called New Window
)
Then, click on its tab and drag it somewhere else to have two editors of the same file
Update: as mentioned by moschlar, From version 4.4, two editors can be created with Window
-> Editor
-> Clone
.