FEditorFileUtils::GetDirtyWorldPackages

Appends array with all currently dirty world packages.