A pivot hung or top hung roof window, said roof window comprising: a frame and a sash, said sash being pivotally connected to said frame and pivotally movable relative to the frame between a fully closed position, a nearly closed position where said sash is proximate to said frame and open positions, characterized by a sash actuator operatively connected to said sash and configured to move said sash between said nearly closed position and said open positions, wherein said sash actuator comprises a linear actuator, such as for example a spindle actuator driven by an electric drive motor, said sash actuator being not self-locking and being configured to be movable by the sash when said sash is manually moved, and said sash is at least partially balanced by a balancing arrangement that may comprise a resilient member such as a helical wire spring or a gas spring, a handle provided with said sash for manually moving said sash between said fully closed and open positions, and a motorized electronically operated lock that comprises first and second cooperating lock parts (22,24) that can engage and disengage one another with the first or the second cooperating lock part (22,24) being attached to said frame and the other cooperating lock part (22,24) being attached to said sash, said first and second cooperating lock parts (22,24) being configured to engage one another when said sash arrives from an open position at said nearly closed position, at least the first cooperating lock part being configured to carry out a motorized movement that pulls said sash from said nearly closed position to said fully closed position when said first and second cooperating lock parts (22,24) engage one another. a frame and a sash, said sash being pivotally connected to said frame and pivotally movable relative to the frame between a fully closed position, a nearly closed position where said sash is proximate to said frame and open positions, characterized by a sash actuator operatively connected to said sash and configured to move said sash between said nearly closed position and said open positions, wherein said sash actuator comprises a linear actuator, such as for example a spindle actuator driven by an electric drive motor, said sash actuator being not self-locking and being configured to be movable by the sash when said sash is manually moved, and said sash is at least partially balanced by a balancing arrangement that may comprise a resilient member such as a helical wire spring or a gas spring, a handle provided with said sash for manually moving said sash between said fully closed and open positions, and a motorized electronically operated lock that comprises first and second cooperating lock parts (22,24) that can engage and disengage one another with the first or the second cooperating lock part (22,24) being attached to said frame and the other cooperating lock part (22,24) being attached to said sash, said first and second cooperating lock parts (22,24) being configured to engage one another when said sash arrives from an open position at said nearly closed position, at least the first cooperating lock part being configured to carry out a motorized movement that pulls said sash from said nearly closed position to said fully closed position when said first and second cooperating lock parts (22,24) engage one another.