Actress Amanda Bynes was arrested by police in her midtown apartment Thursday night after officers said her room reeked of marijuana and caught her throwing drug paraphernalia out the window, law enforcement sources said.

The doorman at Bynes' building on West 47th Street called police to report she was smoking marijuana in the lobby, sources said. When officers arrived, Bynes had returned to her apartment on the 36th floor.

Officers observed a bong inside Bynes' apartment as she opened the door, the sources said. That's when she allegedly grabbed it and tossed it out of the window.

Officers also noted a "heavy" smell of marijuana and smoke inside the apartment, according to the sources.

Bynes, 27, was arrested on charges of reckless endangerment, tampering with evidence and criminal possession of marijuana.

She was taken to Roosevelt Hospital to undergo a psychiatric evaluation, then to a Midtown police station to be processed, according to the sources. She was held overnight at a police precinct, then pulled up to court in a squad car Friday morning, appearing disheveled in a long wig and sweatpants.

"I'm asking you I don't want any pictures," she said to one of the photographers in the crush of media.

"I don't want any photos. No press are allowed in here," she announced to the public courtroom.

Bynes' attorney for the arraignment, Andrew Friedman, insisted she had never been in any trouble before in New York.

Friedman also said Bynes "completely denies illegally throwing anything out of her window."

The judge asked Bynes if she lived in Manhattan, and she said, "I do, sir."

When he asked if she was planning to stay in Manhattan, she said "um, yes."

He then went through the conditions of her release, including that if she gets arrested again or fails to show up for her next court date in July, he would set "significant bail."

Bynes, whose increasingly bizarre behavior has been the subject of tabloid scrutiny in recent months, is already under probation for driving with a suspended license. The plea deal secured in Burbank, Calif. earlier this month placed Bynes under three years probation.

The former Nickelodeon star also has a DUI case pending in Beverly Hills. And last December, she settled another misdemeanor hit-and-run case in California.

Prosecutors had asked for $1,000 bail. Prosecutors said no bong was recovered from the street below — a sign, her attorney said, that Bynes was telling the truth.

"There was nothing recovered from the sidewalk, clearly a search was made for the bag," said Friedman. He said she was followed illegally into her apartment and has made a complaint about police wrongfully entering.

As the judge dispensed with her case, she said, "Thank you sir, have a nice day."

The star then got into a waiting yellow cab ringed with photographers and TV cameras and left.

-- Additional reporting from AP