Rain could lead to flash flooding in parts of Sydney, with heavy rainfall in the NT's Top End also expected.