Creates an enumerable and writable `propertiesObject` from an object literal