Complex sentence: Sheridan has a dream in which his father appears to talk to him, just as Kosh is being attacked by Shadows in his quarters.
Split into simpler sentences: Sheridan has a dream in which his father appears to talk to him. Meanwhile Kosh is being attacked by Shadows in his quarters.