That's fine in informal conversation, but it is not considered acceptable in formal written British English.
That's a pity, because it would have enabled a useful distinction between state (the door was closed) and action (the door got closed) which exists in some languages.